Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import os
|
|
3 |
import openai
|
4 |
import gradio as gr
|
5 |
import json
|
|
|
6 |
|
7 |
# Set the OpenAI API key
|
8 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
@@ -134,6 +135,7 @@ iface = gr.Interface(
|
|
134 |
thumbnail="https://assets.bigcartel.com/theme_images/101321509/IMG_6002.png", # Thumbnail image URL
|
135 |
favicon_path="https://assets.bigcartel.com/theme_images/101321509/IMG_6002.png", # Favicon image URL
|
136 |
allow_flagging="manual", # Enable flagging with manual control
|
|
|
137 |
flagging_callback=hf_writer
|
138 |
)
|
139 |
|
|
|
3 |
import openai
|
4 |
import gradio as gr
|
5 |
import json
|
6 |
+
import csv
|
7 |
|
8 |
# Set the OpenAI API key
|
9 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
|
135 |
thumbnail="https://assets.bigcartel.com/theme_images/101321509/IMG_6002.png", # Thumbnail image URL
|
136 |
favicon_path="https://assets.bigcartel.com/theme_images/101321509/IMG_6002.png", # Favicon image URL
|
137 |
allow_flagging="manual", # Enable flagging with manual control
|
138 |
+
flagging_options=[" "],
|
139 |
flagging_callback=hf_writer
|
140 |
)
|
141 |
|