Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,6 @@ import openai
|
|
4 |
import gradio as gr
|
5 |
import json
|
6 |
|
7 |
-
# Set the flagging function
|
8 |
-
HF_TOKEN = os.getenv("HF_TOKEN")
|
9 |
-
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "flagged")
|
10 |
-
|
11 |
# Set the OpenAI API key
|
12 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
13 |
|
@@ -135,8 +131,7 @@ iface = gr.Interface(
|
|
135 |
favicon_path="https://assets.bigcartel.com/theme_images/101321509/IMG_6002.png", # Favicon image URL
|
136 |
allow_flagging="manual",
|
137 |
flagging_options=["Inaccurate Information", "Not Applicable", "Not Helpful"],
|
138 |
-
|
139 |
-
|
140 |
)
|
141 |
|
142 |
# Launch the interface with authentication
|
|
|
4 |
import gradio as gr
|
5 |
import json
|
6 |
|
|
|
|
|
|
|
|
|
7 |
# Set the OpenAI API key
|
8 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
9 |
|
|
|
131 |
favicon_path="https://assets.bigcartel.com/theme_images/101321509/IMG_6002.png", # Favicon image URL
|
132 |
allow_flagging="manual",
|
133 |
flagging_options=["Inaccurate Information", "Not Applicable", "Not Helpful"],
|
134 |
+
|
|
|
135 |
)
|
136 |
|
137 |
# Launch the interface with authentication
|