Spaces:
Runtime error
Runtime error
Commit
·
a8ff319
1
Parent(s):
fdec65d
small fixes
Browse files
app.py
CHANGED
|
@@ -25,6 +25,7 @@ import time
|
|
| 25 |
from datetime import datetime
|
| 26 |
|
| 27 |
import gradio as gr
|
|
|
|
| 28 |
import torchaudio
|
| 29 |
|
| 30 |
from examples import examples
|
|
@@ -108,6 +109,7 @@ def process_microphone(
|
|
| 108 |
return "", build_html_output(str(e), "result_item_error")
|
| 109 |
|
| 110 |
|
|
|
|
| 111 |
def process(
|
| 112 |
language: str,
|
| 113 |
repo_id: str,
|
|
|
|
| 25 |
from datetime import datetime
|
| 26 |
|
| 27 |
import gradio as gr
|
| 28 |
+
import torch
|
| 29 |
import torchaudio
|
| 30 |
|
| 31 |
from examples import examples
|
|
|
|
| 109 |
return "", build_html_output(str(e), "result_item_error")
|
| 110 |
|
| 111 |
|
| 112 |
+
@torch.no_grad()
|
| 113 |
def process(
|
| 114 |
language: str,
|
| 115 |
repo_id: str,
|