chatbot / app.py
Evan Lesmez
Add BLIP caption and VQA to gradio
986fa13
raw
history blame
365 Bytes
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"]
))