xiezhe22 commited on
Commit
a6775d1
Β·
1 Parent(s): ff86f2b

Add description

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -199,7 +199,7 @@ def infer_chatts_stream(prompt: str, csv_file):
199
  "streamer": streamer,
200
  "temperature": 0.3
201
  })
202
- thread = threading.Thread(
203
  target=model.generate,
204
  kwargs=inputs
205
  )
@@ -230,7 +230,7 @@ def infer_chatts_stream(prompt: str, csv_file):
230
  # ─── GRADIO APP ────────────────────────────────────────────────────────────────
231
 
232
  with gr.Blocks(title="ChatTS Demo") as demo:
233
- gr.Markdown("## ChatTS: Text + Time Series Inference Demo")
234
  gr.Markdown("Upload a CSV file where each column is a time series. All columns will be treated as time series data.")
235
 
236
  with gr.Row():
@@ -248,15 +248,15 @@ with gr.Blocks(title="ChatTS Demo") as demo:
248
  value="Please analyze these time series and provide insights about trends, patterns, and anomalies."
249
  )
250
 
251
- run_btn = gr.Button("Run ChatTS Analysis", variant="primary")
252
 
253
  with gr.Column(scale=2):
254
- plot_out = gr.LinePlot(value=pd.DataFrame(), label="Time Series Visualization")
255
  series_selector = gr.Dropdown(
256
  label="Select Time Series to Display",
257
  choices=[],
258
  value=None
259
  )
 
260
  file_status = gr.Textbox(
261
  label="File Status",
262
  interactive=False,
 
199
  "streamer": streamer,
200
  "temperature": 0.3
201
  })
202
+ thread = Thread(
203
  target=model.generate,
204
  kwargs=inputs
205
  )
 
230
  # ─── GRADIO APP ────────────────────────────────────────────────────────────────
231
 
232
  with gr.Blocks(title="ChatTS Demo") as demo:
233
+ gr.Markdown("## ChatTS Demo: Time Series Understanding and Reasoning")
234
  gr.Markdown("Upload a CSV file where each column is a time series. All columns will be treated as time series data.")
235
 
236
  with gr.Row():
 
248
  value="Please analyze these time series and provide insights about trends, patterns, and anomalies."
249
  )
250
 
251
+ run_btn = gr.Button("Run ChatTS", variant="primary")
252
 
253
  with gr.Column(scale=2):
 
254
  series_selector = gr.Dropdown(
255
  label="Select Time Series to Display",
256
  choices=[],
257
  value=None
258
  )
259
+ plot_out = gr.LinePlot(value=pd.DataFrame(), label="Time Series Visualization")
260
  file_status = gr.Textbox(
261
  label="File Status",
262
  interactive=False,