thak123 commited on
Commit
b3c62db
·
1 Parent(s): 6954df4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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']} {gr.HTML(f"<iframe src=\'{item['link']}\' width='100%' height='500px'></iframe>"))}"
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']} {gr.HTML("<iframe src=\'{item['link']}\' width=\'100%\' height=\'500px\'></iframe>")}"
41
 
42
  # Create a Gradio interface
43
  iface = gr.Interface(