unassign gradio interface to a variable
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def generate_response(message: str, history) -> str:
|
|
17 |
)['choices'][0]['message']['content']
|
18 |
|
19 |
|
20 |
-
|
21 |
fn=generate_response,
|
22 |
examples=[
|
23 |
"What Payment Modalities are accepted?",
|
@@ -29,6 +29,4 @@ demo = gr.ChatInterface(
|
|
29 |
Fine tuned on the https://huggingface.co/datasets/bitext/Bitext-customer-support-llm-chatbot-training-dataset dataset. Random seed of 65 was used to select 1k rows from the dataset, find that version at https://huggingface.co/datasets/Victorano/customer-support-1k, all on huggingface.
|
30 |
You can find the full source code at (https://github.com/Victoran0/ECommerce-customer-support-chatbot).""",
|
31 |
theme="HaleyCH/HaleyCH_Theme"
|
32 |
-
)
|
33 |
-
|
34 |
-
demo.launch()
|
|
|
17 |
)['choices'][0]['message']['content']
|
18 |
|
19 |
|
20 |
+
gr.ChatInterface(
|
21 |
fn=generate_response,
|
22 |
examples=[
|
23 |
"What Payment Modalities are accepted?",
|
|
|
29 |
Fine tuned on the https://huggingface.co/datasets/bitext/Bitext-customer-support-llm-chatbot-training-dataset dataset. Random seed of 65 was used to select 1k rows from the dataset, find that version at https://huggingface.co/datasets/Victorano/customer-support-1k, all on huggingface.
|
30 |
You can find the full source code at (https://github.com/Victoran0/ECommerce-customer-support-chatbot).""",
|
31 |
theme="HaleyCH/HaleyCH_Theme"
|
32 |
+
).launch()
|
|
|
|