SpawnedShoyo commited on
Commit
9bb5705
·
verified ·
1 Parent(s): 0b8a826

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ def chat_with_model(user_input):
8
  response = model(user_input)[0]['generated_text']
9
  return response
10
 
11
- textbox = gr.inputs.Textbox(lines=7, label="User Input")
12
  output_text = gr.outputs.Textbox(label="ChatGPT Response")
13
 
14
- gr.Interface(fn=chat_with_model, inputs=textbox, outputs=output_text, title="ChatGPT with Hugging Face", description="Interact with the ChatGPT model from Hugging Face").launch()
 
8
  response = model(user_input)[0]['generated_text']
9
  return response
10
 
11
+ textbox = gr.inputs.Textbox(lines=7, label="Chat with the Model")
12
  output_text = gr.outputs.Textbox(label="ChatGPT Response")
13
 
14
+ gr.Interface(fn=chat_with_model, inputs=textbox, outputs=output_text, title="ChatGPT with Hugging Face", description="Chat with the ChatGPT model from Hugging Face").launch()