Spaces:
Running
Running
Commit ·
dc7ada9
1
Parent(s): 6b3773a
intro and gradio version
Browse files- app.py +9 -3
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -200,8 +200,14 @@ custom_css = """
|
|
| 200 |
|
| 201 |
# 6. Build the Gradio Interface
|
| 202 |
with gr.Blocks() as demo:
|
| 203 |
-
gr.Markdown(
|
| 204 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
|
| 206 |
image_input = gr.Image(type="pil", label="Upload Skin Image")
|
| 207 |
predict_btn = gr.Button("Run")
|
|
@@ -209,7 +215,7 @@ with gr.Blocks() as demo:
|
|
| 209 |
|
| 210 |
with gr.Accordion("Sample Image", open=False):
|
| 211 |
gr.Examples(
|
| 212 |
-
examples=["twok_sample.jpg"],
|
| 213 |
inputs=image_input,
|
| 214 |
outputs=output_html,
|
| 215 |
fn=predict,
|
|
|
|
| 200 |
|
| 201 |
# 6. Build the Gradio Interface
|
| 202 |
with gr.Blocks() as demo:
|
| 203 |
+
gr.Markdown(
|
| 204 |
+
"<h1 style='text-align: center;'>Twok-Test</h1>"
|
| 205 |
+
)
|
| 206 |
+
gr.Markdown(
|
| 207 |
+
"<p style='text-align: center; font-size: 16px; color: #4b5563;'>"
|
| 208 |
+
"নির্ভুল চর্মরোগ নির্ণয় এবং জনস্বাস্থ্য সুরক্ষায় একটি বিশেষায়িত কৃত্রিম বুদ্ধিমত্তা ভিত্তিক সেবা।"
|
| 209 |
+
"</p>"
|
| 210 |
+
)
|
| 211 |
|
| 212 |
image_input = gr.Image(type="pil", label="Upload Skin Image")
|
| 213 |
predict_btn = gr.Button("Run")
|
|
|
|
| 215 |
|
| 216 |
with gr.Accordion("Sample Image", open=False):
|
| 217 |
gr.Examples(
|
| 218 |
+
examples=["twok_sample.jpg", "twok_sample2.jpg"],
|
| 219 |
inputs=image_input,
|
| 220 |
outputs=output_html,
|
| 221 |
fn=predict,
|
requirements.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
torch
|
| 2 |
torchvision
|
| 3 |
-
gradio
|
| 4 |
numpy
|
| 5 |
Pillow
|
| 6 |
transformers
|
|
|
|
| 1 |
torch
|
| 2 |
torchvision
|
| 3 |
+
gradio>=4.0.0
|
| 4 |
numpy
|
| 5 |
Pillow
|
| 6 |
transformers
|