Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files- app.py +2 -2
- requirements.txt +2 -1
app.py
CHANGED
@@ -19,11 +19,11 @@ def infer(image, best_max_flavors):
|
|
19 |
|
20 |
with gr.Blocks(css=css) as demo:
|
21 |
with gr.Column(elem_id="col-container"):
|
22 |
-
gr.Markdown("# CLIP Interrogator\nThe demo is part of [panna](https://github.com/
|
23 |
input_image = gr.Image(type='pil')
|
24 |
with gr.Row():
|
25 |
flavor_input = gr.Slider(minimum=2, maximum=48, step=2, value=32, label='best mode max flavors')
|
26 |
run_button = gr.Button("Submit")
|
27 |
output_text = gr.Textbox(label="Description Output")
|
28 |
run_button.click(fn=infer, inputs=[input_image, flavor_input], outputs=[output_text], concurrency_limit=10)
|
29 |
-
demo.launch()
|
|
|
19 |
|
20 |
with gr.Blocks(css=css) as demo:
|
21 |
with gr.Column(elem_id="col-container"):
|
22 |
+
gr.Markdown("# CLIP Interrogator\nThe demo is part of [panna](https://github.com/asahi417/panna) project.")
|
23 |
input_image = gr.Image(type='pil')
|
24 |
with gr.Row():
|
25 |
flavor_input = gr.Slider(minimum=2, maximum=48, step=2, value=32, label='best mode max flavors')
|
26 |
run_button = gr.Button("Submit")
|
27 |
output_text = gr.Textbox(label="Description Output")
|
28 |
run_button.click(fn=infer, inputs=[input_image, flavor_input], outputs=[output_text], concurrency_limit=10)
|
29 |
+
demo.launch(server_name="0.0.0.0")
|
requirements.txt
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
--extra-index-url https://download.pytorch.org/whl/cu113
|
|
|
2 |
torch
|
3 |
torchvision
|
4 |
spaces
|
5 |
clip-interrogator
|
6 |
-
panna
|
|
|
1 |
--extra-index-url https://download.pytorch.org/whl/cu113
|
2 |
+
git+https://github.com/rwightman/pytorch-image-models.git
|
3 |
torch
|
4 |
torchvision
|
5 |
spaces
|
6 |
clip-interrogator
|
7 |
+
panna>=0.0.4
|