rmayormartins commited on
Commit
64ab2c3
·
1 Parent(s): 455e7aa

Subindo arquivos13

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -115,6 +115,10 @@ def interactive_propagation_map(site1_coords, site2_coords, site1_height, site2_
115
  return map_html, f"Distância: {distance:.2f} km", f"Perda de propagação: {propagation_loss:.2f} dB", fresnel_plot, f"Orçamento de enlace (Site 1 -> Site 2): {link_budget1:.2f} dB", f"Orçamento de enlace (Site 2 -> Site 1): {link_budget2:.2f} dB", los_plot
116
 
117
  with gr.Blocks() as interface:
 
 
 
 
118
  with gr.Row():
119
  with gr.Column(scale=1):
120
  gr.Markdown("### Mapa")
@@ -162,7 +166,7 @@ with gr.Blocks() as interface:
162
  #
163
  interface.launch()
164
 
165
- # JavaScript
166
  js_code = '''
167
  document.addEventListener('DOMContentLoaded', function() {
168
  var iframe = document.querySelector('iframe');
 
115
  return map_html, f"Distância: {distance:.2f} km", f"Perda de propagação: {propagation_loss:.2f} dB", fresnel_plot, f"Orçamento de enlace (Site 1 -> Site 2): {link_budget1:.2f} dB", f"Orçamento de enlace (Site 2 -> Site 1): {link_budget2:.2f} dB", los_plot
116
 
117
  with gr.Blocks() as interface:
118
+ gr.Markdown("# RF-Radio")
119
+ gr.Markdown("## Calculate the line of sight and propagation loss between two points.")
120
+ gr.Markdown("### Version 1 developed by Ramon Mayor Martins, 2024 | [Personal](https://rmayormartins.github.io/) | [Spaces](https://huggingface.co/rmayormartins)")
121
+
122
  with gr.Row():
123
  with gr.Column(scale=1):
124
  gr.Markdown("### Mapa")
 
166
  #
167
  interface.launch()
168
 
169
+ # JavaScript campo (voltar)
170
  js_code = '''
171
  document.addEventListener('DOMContentLoaded', function() {
172
  var iframe = document.querySelector('iframe');