Tonic commited on
Commit
76a9fd4
·
unverified ·
1 Parent(s): db81045

improve gradio blocks interface

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -54,9 +54,6 @@ You can reset the interface anytime by clicking the **Reset** button.
54
  - **📸Object Detection**: Identify and label objects within the image.
55
  - **📸✍🏻OCR**: Extract text from the image.
56
  - **📸Region Proposal**: Detect key regions in the image for detailed captioning.
57
-
58
- ### Join us :
59
- 🌟TeamTonic🌟 is always making cool demos! Join our active builder's 🛠️community 👻 [![Join us on Discord](https://img.shields.io/discord/1109943800132010065?label=Discord&logo=discord&style=flat-square)](https://discord.gg/qdfnvSPcqP) On 🤗Huggingface:[MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Tonic-AI](https://github.com/tonic-ai) & contribute to🌟 [Build Tonic](https://git.tonic-ai.com/contribute)🤗Big thanks to Yuvi Sharma and all the folks at huggingface for the community grant 🤗
60
  """
61
 
62
  model_presentation = f"""
@@ -80,6 +77,9 @@ In addition to text tasks, 🙏🏻PLeIAs/📸📈✍🏻Florence-PDF also incor
80
 
81
  """
82
 
 
 
 
83
  device = "cuda" if torch.cuda.is_available() else "cpu"
84
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
85
 
@@ -216,6 +216,9 @@ with gr.Blocks(title="Tonic's 🙏🏻PLeIAs/📸📈✍🏻Florence-PDF") as if
216
  with gr.Column(scale=1):
217
  with gr.Group():
218
  gr.Markdown(description)
 
 
 
219
  with gr.Row():
220
  with gr.Column(scale=1):
221
  image_input = gr.Image(type="pil", label="Input Image")
 
54
  - **📸Object Detection**: Identify and label objects within the image.
55
  - **📸✍🏻OCR**: Extract text from the image.
56
  - **📸Region Proposal**: Detect key regions in the image for detailed captioning.
 
 
 
57
  """
58
 
59
  model_presentation = f"""
 
77
 
78
  """
79
 
80
+ joinus = """🌟TeamTonic🌟 is always making cool demos! Join our active builder's 🛠️community 👻 [![Join us on Discord](https://img.shields.io/discord/1109943800132010065?label=Discord&logo=discord&style=flat-square)](https://discord.gg/qdfnvSPcqP) On 🤗Huggingface:[MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Tonic-AI](https://github.com/tonic-ai) & contribute to🌟 [Build Tonic](https://git.tonic-ai.com/contribute)🤗Big thanks to Yuvi Sharma and all the folks at huggingface for the community grant 🤗
81
+ """
82
+
83
  device = "cuda" if torch.cuda.is_available() else "cpu"
84
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
85
 
 
216
  with gr.Column(scale=1):
217
  with gr.Group():
218
  gr.Markdown(description)
219
+ with gr.Row():
220
+ with gr.Accordion("Join Us", open=True):
221
+ gr.Markdown(joinus)
222
  with gr.Row():
223
  with gr.Column(scale=1):
224
  image_input = gr.Image(type="pil", label="Input Image")