Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ os.makedirs("uploaded_images", exist_ok=True)
|
|
11 |
os.makedirs("submissions", exist_ok=True)
|
12 |
|
13 |
# Hugging Face Dataset configuration
|
14 |
-
HF_TOKEN = os.environ.get("HF_TOKEN")
|
15 |
-
DATASET_NAME = "minemaster01/se-culture-dataset-results"
|
16 |
DATASET_CREATED = False
|
17 |
|
18 |
# States by country dictionary
|
@@ -204,14 +204,11 @@ with gr.Blocks() as gradio_app:
|
|
204 |
with gr.Row():
|
205 |
english_caption = gr.Textbox(label="English Caption:", placeholder="Enter caption in English")
|
206 |
|
207 |
-
#
|
208 |
with gr.Row():
|
209 |
clear_btn = gr.Button("Clear")
|
210 |
submit_btn = gr.Button("Submit")
|
211 |
|
212 |
-
with gr.Row():
|
213 |
-
share_btn = gr.Button("Share via Link", variant="secondary", elem_classes=["share-button"])
|
214 |
-
|
215 |
with gr.Row():
|
216 |
output_img = gr.Image(label="Submitted Image")
|
217 |
|
@@ -280,15 +277,6 @@ with gr.Blocks() as gradio_app:
|
|
280 |
]
|
281 |
)
|
282 |
|
283 |
-
gr.HTML("""
|
284 |
-
<style>
|
285 |
-
.share-button {
|
286 |
-
background-color: #f0f0f0 !important;
|
287 |
-
color: #000 !important;
|
288 |
-
border: 1px solid #ccc !important;
|
289 |
-
}
|
290 |
-
</style>
|
291 |
-
""")
|
292 |
|
293 |
if __name__ == "__main__":
|
294 |
gradio_app.launch(share=True)
|
|
|
11 |
os.makedirs("submissions", exist_ok=True)
|
12 |
|
13 |
# Hugging Face Dataset configuration
|
14 |
+
HF_TOKEN = os.environ.get("HF_TOKEN")
|
15 |
+
DATASET_NAME = "minemaster01/se-culture-dataset-results"
|
16 |
DATASET_CREATED = False
|
17 |
|
18 |
# States by country dictionary
|
|
|
204 |
with gr.Row():
|
205 |
english_caption = gr.Textbox(label="English Caption:", placeholder="Enter caption in English")
|
206 |
|
207 |
+
# Buttons row - "Share via Link" button removed
|
208 |
with gr.Row():
|
209 |
clear_btn = gr.Button("Clear")
|
210 |
submit_btn = gr.Button("Submit")
|
211 |
|
|
|
|
|
|
|
212 |
with gr.Row():
|
213 |
output_img = gr.Image(label="Submitted Image")
|
214 |
|
|
|
277 |
]
|
278 |
)
|
279 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
|
281 |
if __name__ == "__main__":
|
282 |
gradio_app.launch(share=True)
|