schoginitoys
commited on
Commit
•
1bc7857
1
Parent(s):
d6c92d4
Sree
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ def generate_code(prompt):
|
|
10 |
return responses[0]['generated_text']
|
11 |
|
12 |
input_textbox = gr.Textbox(label="Please click any button below or enter the last 4 digits of your Amazon.in order-id, name and email along with your questions. We shall get back to you!", lines=3)
|
13 |
-
outputs = gr.Markdown()
|
14 |
-
|
15 |
|
16 |
# Create a Gradio Interface
|
17 |
iface = gr.Interface(
|
@@ -19,6 +19,7 @@ iface = gr.Interface(
|
|
19 |
inputs=input_textbox, #[gr.Textbox(lines=10, label="Type your code description here")],
|
20 |
outputs=outputs, #[gr.Textbox(label="Generated Code")],
|
21 |
examples=[["Define a Python function to calculate factorial."]],
|
|
|
22 |
)
|
23 |
|
24 |
# Run the interface
|
|
|
10 |
return responses[0]['generated_text']
|
11 |
|
12 |
input_textbox = gr.Textbox(label="Please click any button below or enter the last 4 digits of your Amazon.in order-id, name and email along with your questions. We shall get back to you!", lines=3)
|
13 |
+
outputs = gr.Markdown(label="Generated Code")
|
14 |
+
title = "Schogini Toys - AI Chatbot V2.03"
|
15 |
|
16 |
# Create a Gradio Interface
|
17 |
iface = gr.Interface(
|
|
|
19 |
inputs=input_textbox, #[gr.Textbox(lines=10, label="Type your code description here")],
|
20 |
outputs=outputs, #[gr.Textbox(label="Generated Code")],
|
21 |
examples=[["Define a Python function to calculate factorial."]],
|
22 |
+
title=title,
|
23 |
)
|
24 |
|
25 |
# Run the interface
|