Update app.py
Browse files
app.py
CHANGED
@@ -65,12 +65,12 @@ def read_file(file):
|
|
65 |
gr.ChatInterface(
|
66 |
fn=generate,
|
67 |
inputs=[
|
68 |
-
gr.Textbox(label="Prompt"),
|
69 |
-
gr.Textbox(label="History", placeholder="User1: Hello\nBot: Hi there!\nUser1: How are you?"),
|
70 |
-
gr.Textbox(label="System Prompt"),
|
71 |
-
gr.File(label="Upload CSV or Document", type="binary"), # Max file size is 2 GB
|
72 |
],
|
73 |
-
outputs=gr.Textbox(label="Response"),
|
74 |
title="Synthetic-data-generation-aze",
|
75 |
additional_inputs=additional_inputs,
|
76 |
examples=[
|
@@ -83,4 +83,3 @@ gr.ChatInterface(
|
|
83 |
flagging_options=["Inappropriate", "Incorrect", "Offensive"],
|
84 |
thumbs=None,
|
85 |
).launch()
|
86 |
-
|
|
|
65 |
gr.ChatInterface(
|
66 |
fn=generate,
|
67 |
inputs=[
|
68 |
+
gr.inputs.Textbox(label="Prompt"),
|
69 |
+
gr.inputs.Textbox(label="History", placeholder="User1: Hello\nBot: Hi there!\nUser1: How are you?"),
|
70 |
+
gr.inputs.Textbox(label="System Prompt"),
|
71 |
+
gr.inputs.File(label="Upload CSV or Document", type="binary"), # Max file size is 2 GB
|
72 |
],
|
73 |
+
outputs=gr.outputs.Textbox(label="Response"),
|
74 |
title="Synthetic-data-generation-aze",
|
75 |
additional_inputs=additional_inputs,
|
76 |
examples=[
|
|
|
83 |
flagging_options=["Inappropriate", "Incorrect", "Offensive"],
|
84 |
thumbs=None,
|
85 |
).launch()
|
|