Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,4 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
title = "HouseMD bot"
|
4 |
-
|
5 |
-
description = "Gradio Demo for telegram bot \
|
6 |
-
To use it, simply add your text message. \
|
7 |
-
I've used the API on this Space to deploy the model on a Telegram bot."
|
8 |
-
|
9 |
import torch
|
10 |
import faiss
|
11 |
import numpy as np
|
@@ -13,6 +6,12 @@ import pandas as pd
|
|
13 |
import datasets
|
14 |
from transformers import AutoTokenizer, AutoModel
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
def embed_bert_cls(text, model, tokenizer):
|
18 |
t = tokenizer(text, padding=True, truncation=True, return_tensors='pt')
|
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import torch
|
3 |
import faiss
|
4 |
import numpy as np
|
|
|
6 |
import datasets
|
7 |
from transformers import AutoTokenizer, AutoModel
|
8 |
|
9 |
+
title = "HouseMD bot"
|
10 |
+
|
11 |
+
description = "Gradio Demo for telegram bot \
|
12 |
+
To use it, simply add your text message. \
|
13 |
+
I've used the API on this Space to deploy the model on a Telegram bot."
|
14 |
+
|
15 |
|
16 |
def embed_bert_cls(text, model, tokenizer):
|
17 |
t = tokenizer(text, padding=True, truncation=True, return_tensors='pt')
|