Spaces:
Running
on
Zero
Running
on
Zero
Liam Dyer
commited on
add GPU annotation
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
|
|
3 |
|
4 |
|
|
|
5 |
def convert(file):
|
6 |
os.system(f"pandoc {file} -t markdown -o output.md")
|
7 |
with open("output.md", "r") as f:
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
+
import spaces
|
4 |
|
5 |
|
6 |
+
@spaces.GPU
|
7 |
def convert(file):
|
8 |
os.system(f"pandoc {file} -t markdown -o output.md")
|
9 |
with open("output.md", "r") as f:
|