Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,10 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
from transformers import AutoModelForMaskedLM, AutoTokenizer, pipeline
|
3 |
|
4 |
# Load ClinicalBERT model
|
|
|
1 |
import gradio as gr
|
2 |
+
|
3 |
+
def test_function(input_text):
|
4 |
+
return f"You said: {input_text}"
|
5 |
+
|
6 |
+
interface = gr.Interface(fn=test_function, inputs="text", outputs="text")
|
7 |
+
interface.launch()
|
8 |
from transformers import AutoModelForMaskedLM, AutoTokenizer, pipeline
|
9 |
|
10 |
# Load ClinicalBERT model
|