mawairon commited on
Commit
ad03545
·
verified ·
1 Parent(s): 7d2973b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -114,7 +114,7 @@ def analyze_dna(sequence, password):
114
  image_base64 = base64.b64encode(buf.read()).decode('utf-8')
115
  buf.close()
116
 
117
- return result, f'<img src="data:image/png;base64,{image_base64}" />'
118
 
119
  except Exception as e:
120
  return {"error": str(e)}, ""
@@ -123,7 +123,7 @@ def analyze_dna(sequence, password):
123
  demo = gr.Interface(
124
  fn=analyze_dna,
125
  inputs=[gr.Textbox(label="DNA Sequence"), gr.Textbox(label="Password", type="password")],
126
- outputs=["json", "html"]
127
  )
128
 
129
  # Launch the interface
 
114
  image_base64 = base64.b64encode(buf.read()).decode('utf-8')
115
  buf.close()
116
 
117
+ return f'<img src="data:image/png;base64,{image_base64}" />'
118
 
119
  except Exception as e:
120
  return {"error": str(e)}, ""
 
123
  demo = gr.Interface(
124
  fn=analyze_dna,
125
  inputs=[gr.Textbox(label="DNA Sequence"), gr.Textbox(label="Password", type="password")],
126
+ outputs=["html"]
127
  )
128
 
129
  # Launch the interface