Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def chatgpt_clone(input, history):
|
|
26 |
s = list(sum(history, ()))
|
27 |
s.append(input)
|
28 |
inp = ' '.join(s)
|
29 |
-
#output = openai_create(inp)
|
30 |
|
31 |
output = gradio_ask_ai(inp)
|
32 |
#print("out",type(output))
|
@@ -37,7 +37,7 @@ block = gr.Blocks()
|
|
37 |
|
38 |
|
39 |
with block:
|
40 |
-
gr.Markdown("""<h1><center>
|
41 |
""")
|
42 |
chatbot = gr.Chatbot()
|
43 |
message = gr.Textbox(placeholder=prompt)
|
@@ -45,4 +45,5 @@ with block:
|
|
45 |
submit = gr.Button("SEND")
|
46 |
submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot, state])
|
47 |
|
48 |
-
block.launch(
|
|
|
|
26 |
s = list(sum(history, ()))
|
27 |
s.append(input)
|
28 |
inp = ' '.join(s)
|
29 |
+
#output = openai_create(inp) gradio_ask_ai
|
30 |
|
31 |
output = gradio_ask_ai(inp)
|
32 |
#print("out",type(output))
|
|
|
37 |
|
38 |
|
39 |
with block:
|
40 |
+
gr.Markdown("""<h1><center>Build Yo'own ChatGPT with OpenAI API & Gradio</center></h1>
|
41 |
""")
|
42 |
chatbot = gr.Chatbot()
|
43 |
message = gr.Textbox(placeholder=prompt)
|
|
|
45 |
submit = gr.Button("SEND")
|
46 |
submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot, state])
|
47 |
|
48 |
+
block.launch()
|
49 |
+
|