Spaces:
Running
Running
Added header, instructions
Browse files
app.py
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Import gradio - app framework
|
| 2 |
import gradio as gr
|
| 3 |
|
|
|
|
| 1 |
+
# Caption Generator w/English-to-Spanish Translation
|
| 2 |
+
# A. Harper | ARIN 460 | December 2025
|
| 3 |
+
|
| 4 |
+
# Load into Hugging Face Space (using the Gradio Framework)
|
| 5 |
+
# Include requirements.txt file (list: gradio, pandas, torch, sentencepiece, tensorflow, Image, transformers)
|
| 6 |
+
|
| 7 |
+
# To run, navigate to the App tab. Click the red Generate button.
|
| 8 |
+
# The app will randomly select image, generate (English) caption,
|
| 9 |
+
# then generate Spanish translation.
|
| 10 |
+
|
| 11 |
+
|
| 12 |
# Import gradio - app framework
|
| 13 |
import gradio as gr
|
| 14 |
|