Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,20 +1,14 @@
|
|
1 |
-
# app.py - Gradio Interface
|
2 |
-
|
3 |
import gradio as gr
|
4 |
import time
|
5 |
-
import Content as con
|
|
|
6 |
|
7 |
-
def random_response(message,
|
8 |
-
answer = con.starting(message.lower())
|
9 |
for i in range(len(answer)):
|
10 |
-
time.sleep(0.03)
|
11 |
yield answer[:i+1]
|
|
|
12 |
|
13 |
-
|
14 |
-
demo
|
15 |
-
title="Prakriti Analyzer",
|
16 |
-
description="This bot helps you understand your body constitution or 'prakriti' using ancient Ayurveda principles."
|
17 |
-
).queue()
|
18 |
-
|
19 |
-
# Launch Gradio application
|
20 |
-
demo.launch(inbrowser=True)
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import time
|
3 |
+
import Content as con
|
4 |
+
|
5 |
|
6 |
+
def random_response(message,history):
|
7 |
+
answer = con.starting(message.lower())
|
8 |
for i in range(len(answer)):
|
9 |
+
time.sleep(0.03)
|
10 |
yield answer[:i+1]
|
11 |
+
|
12 |
|
13 |
+
demo = gr.ChatInterface(random_response, title= "Prakriti Analyzer", description='This bot is made with love and care to guide you towards a better life by giving you a knowlege about your prakriti or your body costitution.',).queue()
|
14 |
+
demo.launch(inbrowser=True)
|
|
|
|
|
|
|
|
|
|
|
|