Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def display_word():
|
|
37 |
global current_index
|
38 |
word_translation = word_translations[current_index]
|
39 |
current_index = (current_index + 1) % len(word_translations)
|
40 |
-
return f"Word: {word_translation['word']}<br>Translation: {word_translation['translation']}
|
41 |
|
42 |
# Create a Gradio interface
|
43 |
iface = gr.Interface(
|
|
|
37 |
global current_index
|
38 |
word_translation = word_translations[current_index]
|
39 |
current_index = (current_index + 1) % len(word_translations)
|
40 |
+
return f"Word: {word_translation['word']}<br>Translation: {word_translation['translation']} <iframe src='{item['link']}' width=\'100%\' height=\'500px\'></iframe>"
|
41 |
|
42 |
# Create a Gradio interface
|
43 |
iface = gr.Interface(
|