Spaces:
Runtime error
Runtime error
Commit
·
9757ee9
1
Parent(s):
d03fa96
updateded icon and desc
Browse files
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
title: Turkish Question Answering
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
app_file: app.py
|
| 8 |
pinned: false
|
|
|
|
| 1 |
---
|
| 2 |
title: Turkish Question Answering
|
| 3 |
+
emoji: 🔮
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
app_file: app.py
|
| 8 |
pinned: false
|
app.py
CHANGED
|
@@ -10,7 +10,6 @@ def prediction_answer(question, context):
|
|
| 10 |
return result["answer"], str(round(result["score"], 5)), result["start"], result["end"]
|
| 11 |
|
| 12 |
|
| 13 |
-
article = "<p style='text-align: center'>This is the model for <a href='https://huggingface.co/patrickvonplaten/wav2vec2-common_voice-tr-demo' target='_blank'>patrickvonplaten/wav2vec2-common_voice-tr-demo</a>, a fine-tuned <a href='https://huggingface.co/facebook/wav2vec2-large-xlsr-53' target='_blank'>facebook/wav2vec2-large-xlsr-53</a> model on the <a href='https://commonvoice.mozilla.org/en/datasets' target='_blank'>Turkish Common Voice dataset</a>.<br/>When using this model, make sure that your speech input is sampled at 16kHz.<br/><a href='https://github.com/yavuzKomecoglu' target='_blank'>Contact me</a></p>"
|
| 14 |
gradio_ui = gr.Interface(
|
| 15 |
fn=prediction_answer,
|
| 16 |
title="Turkish Question Answering",
|
|
@@ -35,7 +34,6 @@ gradio_ui = gr.Interface(
|
|
| 35 |
gr.outputs.Textbox(label="Start"),
|
| 36 |
gr.outputs.Textbox(label="End"),
|
| 37 |
],
|
| 38 |
-
article = article,
|
| 39 |
theme="huggingface",
|
| 40 |
|
| 41 |
)
|
|
|
|
| 10 |
return result["answer"], str(round(result["score"], 5)), result["start"], result["end"]
|
| 11 |
|
| 12 |
|
|
|
|
| 13 |
gradio_ui = gr.Interface(
|
| 14 |
fn=prediction_answer,
|
| 15 |
title="Turkish Question Answering",
|
|
|
|
| 34 |
gr.outputs.Textbox(label="Start"),
|
| 35 |
gr.outputs.Textbox(label="End"),
|
| 36 |
],
|
|
|
|
| 37 |
theme="huggingface",
|
| 38 |
|
| 39 |
)
|