minemaster01 commited on
Commit
05fb91e
·
verified ·
1 Parent(s): 6b29772

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -15
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") # You'll need to set this as a secret in your Space
15
- DATASET_NAME = "minemaster01/se-culture-dataset-results" # Change to your username/dataset-name
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
- # Add two rows of buttons as shown in the image
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)