CognitiveScience commited on
Commit
d829ffc
1 Parent(s): 1099c3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -103,6 +103,13 @@ def cs(link):
103
  response=acf("hello world")[0]["label"] + str(math.trunc(acf("hello world")[0]["score"])*100/100)+bcf(link)
104
  return response #result #soup.prettify()
105
 
 
 
 
 
 
 
 
106
  with gr.Blocks() as demo:
107
  with gr.Row():
108
  with gr.Column():
@@ -110,13 +117,6 @@ with gr.Blocks() as demo:
110
  msg3 = gr.Textbox()
111
  clear3 = gr.ClearButton([msg3, chatbot3])
112
 
113
- def respond3(message, chat_history):
114
- bot_message = random.choice(["How are you3?", "I love you3", "I'm very hungry3"])
115
- chat_history.append((message, bot_message))
116
- time.sleep(2)
117
-
118
- return "", chat_history
119
-
120
  msg3.submit(respond3, [msg3, chatbot3], [msg3, chatbot3])
121
 
122
  with gr.Row():
 
103
  response=acf("hello world")[0]["label"] + str(math.trunc(acf("hello world")[0]["score"])*100/100)+bcf(link)
104
  return response #result #soup.prettify()
105
 
106
+ def respond3(message, chat_history):
107
+ bot_message = random.choice(["How are you3?", "I love you3", "I'm very hungry3"])
108
+ chat_history.append((message, bot_message))
109
+ time.sleep(2)
110
+
111
+ return "", chat_history
112
+
113
  with gr.Blocks() as demo:
114
  with gr.Row():
115
  with gr.Column():
 
117
  msg3 = gr.Textbox()
118
  clear3 = gr.ClearButton([msg3, chatbot3])
119
 
 
 
 
 
 
 
 
120
  msg3.submit(respond3, [msg3, chatbot3], [msg3, chatbot3])
121
 
122
  with gr.Row():