Upload app.py
Browse files
app.py
CHANGED
@@ -50,10 +50,6 @@ def greet(text):
|
|
50 |
)
|
51 |
inputs = tokenized_data(tokenizer, text)
|
52 |
|
53 |
-
|
54 |
-
# 모델의 매개변수 Tensor를 mps Tensor로 변환
|
55 |
-
# model.to(device)
|
56 |
-
# evaluation mode or training mode
|
57 |
model.eval()
|
58 |
|
59 |
with torch.no_grad():
|
@@ -74,4 +70,4 @@ demo2 = gr.Interface(fn=greet, inputs="text", outputs="text",
|
|
74 |
description=description, examples=examples)
|
75 |
|
76 |
if __name__ == "__main__":
|
77 |
-
|
|
|
50 |
)
|
51 |
inputs = tokenized_data(tokenizer, text)
|
52 |
|
|
|
|
|
|
|
|
|
53 |
model.eval()
|
54 |
|
55 |
with torch.no_grad():
|
|
|
70 |
description=description, examples=examples)
|
71 |
|
72 |
if __name__ == "__main__":
|
73 |
+
demo1.launch()
|