Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from pathlib import Path
|
|
4 |
import gradio as gr
|
5 |
from llama_index import VectorStoreIndex, StorageContext, download_loader, load_index_from_storage
|
6 |
|
7 |
-
dataFiles = ["mattel_06_23_gen", "OnCall", "RetroMay", "RetroApril", "RetroMarch", "Snowflake", "Datadog", "Databricks", "SplunkProducts",
|
8 |
"SplunkEnterprise"]
|
9 |
|
10 |
cache = {}
|
@@ -68,7 +68,7 @@ loadData()
|
|
68 |
iface = gr.Interface(fn=chatbot,
|
69 |
inputs=[
|
70 |
gr.Dropdown(dataFiles,
|
71 |
-
type="value", value="
|
72 |
gr.Textbox(lines=7, label="Ask any question", placeholder='What is the summary?')],
|
73 |
outputs="text",
|
74 |
title="NLP Demo for Chat Interface")
|
|
|
4 |
import gradio as gr
|
5 |
from llama_index import VectorStoreIndex, StorageContext, download_loader, load_index_from_storage
|
6 |
|
7 |
+
dataFiles = ["Mattel_06_23_Open_Gen", "mattel_06_23_gen", "OnCall", "RetroMay", "RetroApril", "RetroMarch", "Snowflake", "Datadog", "Databricks", "SplunkProducts",
|
8 |
"SplunkEnterprise"]
|
9 |
|
10 |
cache = {}
|
|
|
68 |
iface = gr.Interface(fn=chatbot,
|
69 |
inputs=[
|
70 |
gr.Dropdown(dataFiles,
|
71 |
+
type="value", value="Mattel_06_23_Open_Gen", label="Select Pulse Data"),
|
72 |
gr.Textbox(lines=7, label="Ask any question", placeholder='What is the summary?')],
|
73 |
outputs="text",
|
74 |
title="NLP Demo for Chat Interface")
|