Shubham89 commited on
Commit
589fa4a
1 Parent(s): 5e4d118

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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>Meshworks bot</center></h1>
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(inline=False)
 
 
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
+