Yapp99 commited on
Commit
78b7cd8
·
1 Parent(s): cf7955a
Files changed (2) hide show
  1. SpeciesDetail.py +1 -1
  2. app.py +0 -1
SpeciesDetail.py CHANGED
@@ -8,7 +8,7 @@ class SpeciesDetail():
8
  self.detail = detail
9
 
10
  def result_text(self):
11
- detail:str = self.detail
12
  return f'''## Prediction: {self.name}
13
  <details>
14
  <summary>Details</summary>
 
8
  self.detail = detail
9
 
10
  def result_text(self):
11
+ detail:str = self.detail if self.detail != None else self.desc
12
  return f'''## Prediction: {self.name}
13
  <details>
14
  <summary>Details</summary>
app.py CHANGED
@@ -148,7 +148,6 @@ def history_tab():
148
  with gr.Row():
149
  history_imgs.append(gr.Image(height=200,visible=False,scale=0.5))
150
  history_names.append(gr.Markdown("A",visible=False))
151
- gr.Markdown("")
152
 
153
  return history_imgs + history_names
154
 
 
148
  with gr.Row():
149
  history_imgs.append(gr.Image(height=200,visible=False,scale=0.5))
150
  history_names.append(gr.Markdown("A",visible=False))
 
151
 
152
  return history_imgs + history_names
153