Spaces:
Sleeping
Sleeping
Commit
·
a4f1aad
1
Parent(s):
135bdf2
removing logo.png
Browse files
app.py
CHANGED
@@ -30,10 +30,10 @@ def save_feedback(input_text, output_text, feedback, correction=None):
|
|
30 |
"correction": correction
|
31 |
}
|
32 |
|
33 |
-
#
|
34 |
os.makedirs("feedback", exist_ok=True)
|
35 |
|
36 |
-
#
|
37 |
with open(f"feedback/feedback_{len(os.listdir('feedback'))}.json", "w") as f:
|
38 |
json.dump(feedback_data, f)
|
39 |
|
@@ -154,6 +154,5 @@ with gr.Blocks() as demo:
|
|
154 |
with gr.Column(scale=2):
|
155 |
gr.Markdown(__FOOTER)
|
156 |
with gr.Column(scale=1):
|
157 |
-
#gr.Image(__LOGO_URI, show_label=False, container=False, interactive=False)
|
158 |
gr.HTML(value=f"<img width='92%' src='{__LOGO_URI}' alt='logo'/>")
|
159 |
demo.launch()
|
|
|
30 |
"correction": correction
|
31 |
}
|
32 |
|
33 |
+
# ensure the feedback directory exists
|
34 |
os.makedirs("feedback", exist_ok=True)
|
35 |
|
36 |
+
# save feedback to a JSON file
|
37 |
with open(f"feedback/feedback_{len(os.listdir('feedback'))}.json", "w") as f:
|
38 |
json.dump(feedback_data, f)
|
39 |
|
|
|
154 |
with gr.Column(scale=2):
|
155 |
gr.Markdown(__FOOTER)
|
156 |
with gr.Column(scale=1):
|
|
|
157 |
gr.HTML(value=f"<img width='92%' src='{__LOGO_URI}' alt='logo'/>")
|
158 |
demo.launch()
|
logo.png
DELETED
Binary file (4.63 kB)
|
|