Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,10 +9,8 @@
|
|
9 |
# https://platform.openai.com/docs/assistants/tools
|
10 |
|
11 |
import gradio as gr
|
12 |
-
#import pandas as pd
|
13 |
-
#import yfinance as yf
|
14 |
|
15 |
-
import json
|
16 |
|
17 |
from assistants import (
|
18 |
openai_client,
|
@@ -30,12 +28,6 @@ from assistants import (
|
|
30 |
extract_content_values,
|
31 |
)
|
32 |
|
33 |
-
#from datetime import date
|
34 |
-
#from openai import OpenAI
|
35 |
-
#from tavily import TavilyClient
|
36 |
-
#from typing import List
|
37 |
-
#from utils import function_to_schema, show_json
|
38 |
-
|
39 |
def chat(message, history):
|
40 |
if not message:
|
41 |
raise gr.Error("Message is required.")
|
|
|
9 |
# https://platform.openai.com/docs/assistants/tools
|
10 |
|
11 |
import gradio as gr
|
|
|
|
|
12 |
|
13 |
+
import json#, openai, os, time
|
14 |
|
15 |
from assistants import (
|
16 |
openai_client,
|
|
|
28 |
extract_content_values,
|
29 |
)
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
def chat(message, history):
|
32 |
if not message:
|
33 |
raise gr.Error("Message is required.")
|