Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
from texify.inference import batch_inference
|
4 |
from texify.model.model import load_model
|
5 |
from texify.model.processor import load_processor
|
@@ -10,10 +10,10 @@ description="""You can upload a picture with a math formula and this model will
|
|
10 |
Join us: TeamTonic is always making cool demos! Join our active builder's community on Discord: [Discord](https://discord.gg/nXx5wbX9) On Huggingface: [TeamTonic](https://huggingface.co/TeamTonic) & [MultiTransformer](https://huggingface.co/MultiTransformer) On Github: [Polytonic](https://github.com/tonic-ai) & contribute to [PolyGPT](https://github.com/tonic-ai/polygpt-alpha) You can also join the [texify community here](https://discord.gg/zJSDQJWDe8). Big thanks to Vik Paruchuri for the invite and Huggingface for the Community Grant. Your special attentions are much appreciated.
|
11 |
"""
|
12 |
|
13 |
-
|
14 |
model = load_model()
|
15 |
processor = load_processor()
|
16 |
-
|
|
|
17 |
def process_image(img):
|
18 |
# img = Image.fromarray(img)
|
19 |
|
|
|
1 |
import gradio as gr
|
2 |
+
import spaces
|
3 |
from texify.inference import batch_inference
|
4 |
from texify.model.model import load_model
|
5 |
from texify.model.processor import load_processor
|
|
|
10 |
Join us: TeamTonic is always making cool demos! Join our active builder's community on Discord: [Discord](https://discord.gg/nXx5wbX9) On Huggingface: [TeamTonic](https://huggingface.co/TeamTonic) & [MultiTransformer](https://huggingface.co/MultiTransformer) On Github: [Polytonic](https://github.com/tonic-ai) & contribute to [PolyGPT](https://github.com/tonic-ai/polygpt-alpha) You can also join the [texify community here](https://discord.gg/zJSDQJWDe8). Big thanks to Vik Paruchuri for the invite and Huggingface for the Community Grant. Your special attentions are much appreciated.
|
11 |
"""
|
12 |
|
|
|
13 |
model = load_model()
|
14 |
processor = load_processor()
|
15 |
+
|
16 |
+
@spaces.GPU
|
17 |
def process_image(img):
|
18 |
# img = Image.fromarray(img)
|
19 |
|