File size: 365 Bytes
986fa13
 
 
 
adaea7c
 
 
986fa13
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from lv_recipe_chatbot.app import create_demo, ConversationBot
import openai
import os

# for Hugging Face

if __name__ == "__main__":
    openai.api_key = os.environ["OPENAI_API_KEY"]
    demo = create_demo(ConversationBot(verbose=True))
    demo.launch(auth=(
        os.environ["GRADIO_DEMO_USERNAME"],
        os.environ["GRADIO_DEMO_PASSWORD"]
    ))