Spaces:
Running
Running
Commit
·
c85fee9
1
Parent(s):
c58376d
remove torch
Browse files
app.py
CHANGED
|
@@ -26,7 +26,6 @@ import uuid
|
|
| 26 |
from datetime import datetime
|
| 27 |
|
| 28 |
import gradio as gr
|
| 29 |
-
import torch
|
| 30 |
|
| 31 |
from model import (
|
| 32 |
embedding2models,
|
|
@@ -115,7 +114,6 @@ def process_uploaded_file(
|
|
| 115 |
return "", build_html_output(str(e), "result_item_error")
|
| 116 |
|
| 117 |
|
| 118 |
-
@torch.no_grad()
|
| 119 |
def process(
|
| 120 |
embedding_framework: str,
|
| 121 |
embedding_model: str,
|
|
|
|
| 26 |
from datetime import datetime
|
| 27 |
|
| 28 |
import gradio as gr
|
|
|
|
| 29 |
|
| 30 |
from model import (
|
| 31 |
embedding2models,
|
|
|
|
| 114 |
return "", build_html_output(str(e), "result_item_error")
|
| 115 |
|
| 116 |
|
|
|
|
| 117 |
def process(
|
| 118 |
embedding_framework: str,
|
| 119 |
embedding_model: str,
|