vlbthambawita
commited on
Commit
·
3c8cf6c
1
Parent(s):
0e8504b
updated app
Browse files
app.py
CHANGED
@@ -1,3 +1,17 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
+
from transformers import AutoModel
|
4 |
|
5 |
+
#pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
6 |
+
model = AutoModel.from_pretrained("deepsynthbody/deepfake_ecg", trust_remote_code=True)
|
7 |
+
|
8 |
+
def predict(num_ecgs):
|
9 |
+
predictions = model(num_ecgs)
|
10 |
+
return {"ecgs": predictions}
|
11 |
+
|
12 |
+
gr.Interface(
|
13 |
+
predict,
|
14 |
+
inputs="text",
|
15 |
+
outputs="text",
|
16 |
+
title="Generating ECGs",
|
17 |
+
).launch()
|