Spaces:
Runtime error
Runtime error
Commit
·
4c1e42c
1
Parent(s):
6724136
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,7 +70,7 @@ def chatbot(user_prompt,openAI_key):
|
|
| 70 |
else:
|
| 71 |
output_file = "output.mp4"
|
| 72 |
chat_and_animate(output_file, user_prompt,openAI_key)
|
| 73 |
-
return
|
| 74 |
|
| 75 |
with gr.Blocks() as demo:
|
| 76 |
gr.Markdown(f'<center><h1>Ask Lisa !</h1></center>')
|
|
@@ -86,7 +86,7 @@ with gr.Blocks() as demo:
|
|
| 86 |
|
| 87 |
btn.style(full_width=True)
|
| 88 |
with gr.Group():
|
| 89 |
-
output_video = gr.outputs.
|
| 90 |
btn.click(chatbot, inputs=[question,openAI_key], outputs=[output_video])
|
| 91 |
#openai.api_key = os.getenv('Your_Key_Here')
|
| 92 |
|
|
|
|
| 70 |
else:
|
| 71 |
output_file = "output.mp4"
|
| 72 |
chat_and_animate(output_file, user_prompt,openAI_key)
|
| 73 |
+
return output_file
|
| 74 |
|
| 75 |
with gr.Blocks() as demo:
|
| 76 |
gr.Markdown(f'<center><h1>Ask Lisa !</h1></center>')
|
|
|
|
| 86 |
|
| 87 |
btn.style(full_width=True)
|
| 88 |
with gr.Group():
|
| 89 |
+
output_video = gr.outputs.Video()
|
| 90 |
btn.click(chatbot, inputs=[question,openAI_key], outputs=[output_video])
|
| 91 |
#openai.api_key = os.getenv('Your_Key_Here')
|
| 92 |
|