clarissah commited on
Commit
8764588
·
verified ·
1 Parent(s): 0d573ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -21
app.py CHANGED
@@ -32,27 +32,6 @@ def respond(message, history):
32
 
33
  #return response ['choices'][0]['message']['content'].strip()
34
 
35
-
36
-
37
- if message:
38
- output_text = f"You entered: '{input_text}'. This is processed output."
39
- else:
40
- response = "Please enter some text in the input box."
41
- return responses
42
-
43
- # Create the Gradio Interface
44
- iface = gr.Interface(
45
- fn=process_text,
46
- inputs=gr.Textbox(lines=5, label="Input Text", placeholder="Type something here..."),
47
- outputs=gr.Textbox(lines=5, label="Output Text"),
48
- title="My Simple Text Processing Space",
49
- description="Enter text in the input box and see the processed output."
50
- )
51
-
52
- # Launch the app
53
- if chatbot == 'chatbot':
54
- iface.launch()
55
-
56
  chatbot = gr.ChatInterface(respond, type = "messages", theme = "shivi/calm_seafoam")
57
 
58
  chatbot.launch(debug=True)
 
32
 
33
  #return response ['choices'][0]['message']['content'].strip()
34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  chatbot = gr.ChatInterface(respond, type = "messages", theme = "shivi/calm_seafoam")
36
 
37
  chatbot.launch(debug=True)